package com.jeesite.modules.financial.entity.bydconfig;

import com.jeesite.modules.financial.service.bydconfig.TbydCurrencyCode;

import java.math.BigDecimal;

public class ItemDemo {

    private String generalLedgerAccountAliasCode;
    private String currencyId;
    private String currencyCode;
    private BigDecimal businessTransactionCurrencyAmount;
    private String node;

    public String getGeneralLedgerAccountAliasCode() {
        return generalLedgerAccountAliasCode;
    }

    public void setGeneralLedgerAccountAliasCode(String generalLedgerAccountAliasCode) {
        this.generalLedgerAccountAliasCode = generalLedgerAccountAliasCode;
    }

    public String getCurrencyId() {
        return currencyId;
    }

    public void setCurrencyId(String currencyId) {
        this.currencyId = currencyId;
        switch(currencyId){
            case "1":
                this.currencyCode = TbydCurrencyCode.CNY.getCode();
                break;
            case "2":
                this.currencyCode = TbydCurrencyCode.USD.getCode();
                break;
            case "3":
                this.currencyCode = TbydCurrencyCode.EUR.getCode();
                break;
            default:
                this.currencyCode = TbydCurrencyCode.CNY.getCode();
        }
    }

    public String getCurrencyCode() {
        return currencyCode;
    }

    public BigDecimal getBusinessTransactionCurrencyAmount() {
        return businessTransactionCurrencyAmount;
    }

    public void setBusinessTransactionCurrencyAmount(BigDecimal businessTransactionCurrencyAmount) {
        this.businessTransactionCurrencyAmount = businessTransactionCurrencyAmount;
    }

    public String getNode() {
        return node;
    }

    public void setNode(String node) {
        this.node = node;
    }
}
